:root {
  --primary-color: #31c27c;
}

/* 基础 */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Microsoft Yahei, sans-serif;
  color: #000;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 顶部导航 */
.top-nav {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  height: 50px;
  display: flex;
  justify-content: center; /* 整个导航居中 */
  align-items: center;
  min-width: 1200px;       /* 不允许页面比导航窄 */
}

.nav-inner {
  width: 1200px;           /* 固定宽度 */
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center; /* 导航项在中间 */
}

.nav-item {
  color: #000;
  font-size: 15px;
  padding: 0 8px;
  line-height: 50px;
}
.nav-item:hover,
.nav-item.active {
  color: var(--primary-color);
}

/* header */
header {
  height: 90px;
  background: white;
  display: flex;
  align-items: center;
}
.header-inner {
  width: 1200px;
  margin: 0 auto;
}

/* section title */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #333;
}

/* tag list */
.tag-list {
  margin: 10px 0 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  gap: 30px;
}
.tag-with-button {
  position: relative;
  display: flex;
  justify-content: center;  /* 中间那排标签仍居中 */
  align-items: center;
  width: 1200px;
  margin: 0 auto 30px;
}
.tag-options {
  display: flex;
  gap: 30px;
  font-size: 15px;
}
.tag-item {
  color: #000;
}
.tag-active { color: var(--primary-color); }
.tag-item:hover { color: var(--primary-color); }

/* 播放全部按钮（右上角） */
.play-all {
  position: absolute;
  left: 0;                   /* 左上角 */
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid #666;    /* 深灰色细边框 */
  font-size: 15px;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
 
}

.play-all img {
  width: 16px;
  height: 16px;
}

.play-all:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.play-all:focus {
  outline: none;
  box-shadow: none;
}

/* 通用：图片遮罩、播放按钮（直角） */
.cover-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  cursor: pointer;
  border-radius: 0;
}
.cover-img {
  width: 100%;
  display: block;
  transition: transform .6s;
  object-fit: cover;
}
.cover-mask {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #000;
  opacity: 0;
  transition: opacity .3s;
}
.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.7);
  opacity: 0;
  transition: all .3s;
}
.cover-wrap:hover .cover-mask { opacity: 0.2; }
.cover-wrap:hover .cover-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cover-wrap:hover .cover-img { transform: scale(1.07); }

/* 文本溢出 */
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- body-1: 歌单推荐 ---------- */
.body-1 .playlist {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 45px 15px;
  width: 1200px;
  margin: 0 auto;
  
}
.album {
  background: transparent;
  border-radius: 0;
}
.album-title {
  margin-top: 8px;
  font-size: 15px;
  color: #000;
}
.album-author {
  color: #999;
  margin-top: 6px;
  font-size: 13px;
}

/* ---------- body-2: 新歌首发 ---------- */
.body-2 .playlist {
  width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 20px;
}

/* 横向布局（去白底） */
.body-2 .album {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  height: 100px;
  overflow: hidden;
}
.body-2 .cover-wrap { width: 100px; height: 100px; flex-shrink: 0; }
.body-2 .cover-img { width: 100%; height: 100%; object-fit: cover; }

.body-2 .album-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 12px;
  min-width: 0;
}
.body-2 .album-title {
  font-size: 16px;
  color: #000;
  margin-bottom: 6px;
}
.body-2 .album-author {
  font-size: 13px;
  color: #999;
}
.body-2 .album-time {
  font-size: 13px;
  color: #999;
  text-align: center;
}

/* ---------- body-3: MV ---------- */
/* ---------- body-3: MV ---------- */
.body-3 .playlist {
  width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); /* 🚀 强制均分列宽 */
  gap: 30px 15px;
  align-items: start;
}


/* ✅ 彻底统一 MV 封面高度（稳定版） */
.body-3 .cover-wrap {
  width: 100%;
  height: 140px; /* 固定高度，16:9 比例在 250px 宽时近似 */
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #000; /* 防止加载瞬间背景闪白 */
}
.body-3 .cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.body-3 .album-title {
  margin-top: 8px;
  font-size: 15px;
  color: #000;
  overflow: hidden;             /* 超出隐藏 */
  text-overflow: ellipsis;      /* 省略号 */
  white-space: nowrap;          /* 不换行 */
  display: block;               /* 防止内联元素不生效 */
  max-width: 100%;              /* 限制在容器内 */
}


.body-3 .album-author {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}
.album-views {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #999;
  font-size: 13px;
  margin-top: 6px;
}
.album-views img {
  width: 14px;
  height: 14px;
  display: inline-block;
}

/* ---------- 三块背景紧贴过渡 ---------- */
.body-1, .body-2, .body-3 {
  display: block;
  margin: 0;
  padding: 40px 0 60px;
  min-width: 1000px;
}
.body-1 { background-color: #f5f5f5; }
.body-2 { background-color: #ebebeb; }
.body-3 { background-color: #e0e0e0; }

.body-1 + .body-2, .body-2 + .body-3 {
  margin-top: 0;
}

/* 分页与页脚 */
.page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.page-item {
  color: #a2a2a2;
  line-height: 50px;
  padding: 0 20px;
  margin: 10px;
  font-size: 16px;
  text-decoration: none;
}
.page-current,
.page-item:not(.page-more):hover {
  background: var(--primary-color);
  color: white;
}
footer {
  margin-top: 60px;
  background: #333;
  height: 200px;
}
